/*
 * ChatEvent.h
 *
 *  Created on: Nov 21, 2008
 *      Author: Ryan
 */

#ifndef CHATEVENT_H_
#define CHATEVENT_H_

#include "GameEvent.h"

namespace OOInterface
{

class ChatEvent: public OOInterface::GameEvent
{
public:
	ChatEvent( ConstPlayerPtr player, std::string msg ) : _player( player ), _msg( msg ) {}
	virtual ~ChatEvent() {}

	ConstPlayerPtr getSpeaker() const { return _player; }
	void setSpeaker( ConstPlayerPtr player ) { _player = player; }

	std::string getMessage() const { return _msg; }
	void setMessage( std::string msg ) { _msg = msg; }

	virtual std::string toString() const { return std::string("Event: ChatEvent."); }

private:
	ConstPlayerPtr _player;
	std::string _msg;
};

}

#endif /* CHATEVENT_H_ */
